"use strict";
const path = require("path");

function formatPath(p) {
  if (!p || typeof p !== "string") return;
  const sep = path.sep;
  if (sep === "/") {
    return p;
  } else { //Windows为路径为\
    return p.replace(/\\/g, "/");
  }
}
module.exports = formatPath;
